package com.example.autotest.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;

@TableName(value ="user")
@Data
public class User implements Serializable {
    /**
     * 主键ID
     * 注意：的确保你数据库中的对应的字段设置了自增
     */
    @TableId(value = "id" ,type = IdType.AUTO)
    private Long id;

    /**
     * 姓名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 年龄
     */
    @TableField(value = "age")
    private Integer age;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    @TableLogic
    private  Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}